package ZY11_05;

public class Staff {
    private String name;//姓名
    private int age;//年龄
    private String gender;//性别
    private String post;//职务
    private double salary;//薪水
    private String jobNumber;//工号

    public Staff(String name, int age, String gender, String post, double salary, String jobNumber) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.post = post;
        this.salary = salary;
        this.jobNumber = jobNumber;
    }

    public Staff() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    @Override
    public String toString() {
        return "\n"+this.getName()+"\t\t"+this.getAge()+"\t\t"+this.getGender()+"\t\t"+this.getPost()+"\t\t"+this.getSalary()+"\t\t"+this.getJobNumber();
    }
}
